import request from "@/utils/request";
import type { logintype , getlisttype} from "@/types/login";
// 登录的接口
export const _login =(params:logintype)=> request.post('/api/api/login',params)
// 获取数据列表的接口
export const _getlist = (params:getlisttype)=>request.get('/api/api/getlist',{params})
// 根据id删除数据的接口
export const _delete = (id:string)=>request.delete('/api/api/delete',{params:{id}})
// 根据idh获取数据详情的接口
export const _getidlist = (id:string)=>request.get('/api/api/getidlist',{params:{id}})
// 编辑数据的接口
export const _editlist = (params:object)=>request.put('/api/api/editlist',params)
// 添加数据的接口
export const _addlist = (params:object)=>request.post('/api/api/addlist',params)
// 批量删除数据的接口
export const _batchdeletion = (ids:Array<string>)=>request.post('/api/api/batchdeletion',ids)
// 多条件查询的接口
export const _getSelectList = (params:object)=>request.get('/api/api/getSelectList',{params})
// 发送验证码
export const _SendCode = (params:object)=>request.post('/api/api/sendcode',params)
// 修改密码
export const _ChangePassword = (params:object)=>request.post('/api/api/ChangePassword',params)